import java.util.Scanner;
//第十二题
public class M80612 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("输入您的积分");
        int x=in.nextInt();
        if(x>=8000) {
            double y = x * 0.6;
            System.out.println("六折：" + (int)y);
        } else if (x<8000&&x>=4000) {
            double y=x*0.7;
            System.out.println("七折"+(int)y);
        } else if (x<4000&&x>=2000) {
            double y=x*0.8;
            System.out.println("八折"+(int)y);
        }else {
            double y=x*0.9;
            System.out.println("九折"+(int)y);
        }
    }
}
